# 基础镜像
FROM openjdk:8u171-jdk

# 指定工作目录
WORKDIR /app

# 将jar包添加到工作目录
ADD target/service-work-3001.jar .

# 暴露端口
EXPOSE 3001

# 启动命令
ENTRYPOINT ["java","-jar","/app/service-work-3001.jar","--spring.profiles.active=dev"]